This paper use a advanced program langue in the application development of a commercial fea software ansys . the program encapsulation lots of calculation work to free the engineer from hard work, and pay more attention in other works 本文通过一种高级语言对ansys这一运用范围广泛的商用有限元软件进行二次开发,将大量重复的机械计算过程封装成为一个整体。